home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / comm / pf270.zip / PRINTDOC.BAT < prev    next >
DOS Batch File  |  1992-03-17  |  13KB  |  254 lines

  1. @echo off
  2. rem
  3. rem +-------------------------------------------+
  4. rem !   Port Finder PRINT DOCUMENT Batch File   !
  5. rem !   Copyright (c) 1990 mcTRONic Systems     !
  6. rem !   Revised on: August 7, 1990              !
  7. rem !   File Name: PRINTDOC.BAT                 !
  8. rem +-------------------------------------------+
  9. rem
  10. if not exist bh.com goto :error
  11. bh ^
  12. if errorlevel 1 goto :start
  13. goto :error
  14.  
  15. :start
  16. cls
  17. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  18. echo    ║                                                                       ║
  19. echo    ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  20. echo    ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  21. echo    ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  22. echo    ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  23. echo    ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  24. echo    ║                                                                       ║
  25. echo    ║           The Number ONE Shareware COM and LPT Port Utility           ║
  26. echo    ║                                                                       ║
  27. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  28. echo    ║                                                                       ║
  29. echo    ║    1) Display or Print PF.DOC, Port Finder Documentation              ║
  30. echo    ║    2) Display or Print PFREVIEW.DOC, Port Finder Reviews              ║
  31. echo    ║    3) Display or Print PROBLEM.DOC, Port Finder Problem Report        ║
  32. echo    ║    4) Display or Print REGISTER.DOC, Port Finder Registration Form    ║
  33. echo    ║    5) Display or Print MTSR.DOC, MTSR Documentation (Memory Usage)    ║
  34. echo    ║    6) Display or Print MUMB.DOC, MUMB Documentation (DOS 5 UMB's)     ║
  35.  
  36. if exist INSTALL.BAT echo    ║    7) Run the Port Finder Hard Disk INSTALL Program                   ║
  37. echo    ║                                                                       ║
  38. echo    ║    Q) Quit Print Program, Exit to DOS                                 ║
  39. echo    ║                                                                       ║
  40. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  41. if exist INSTALL.BAT bh 1234567Q
  42. if NOT exist INSTALL.BAT bh 123456Q
  43. CLS
  44. if errorlevel 8 goto end
  45. if exist INSTALL.BAT if errorlevel 7 INSTALL
  46. if NOT exist INSTALL.BAT if errorlevel 7 goto end
  47. if errorlevel 6 goto 6prtred
  48. if errorlevel 5 goto 5prtred
  49. if errorlevel 4 goto 4prtred
  50. if errorlevel 3 goto 3prtred
  51. if errorlevel 2 goto 2prtred
  52. if errorlevel 1 goto 1prtred
  53. if errorlevel 0 goto end
  54.  
  55. :1prtred
  56. if not exist pf.doc echo PF.DOC file NOT found!
  57. if not exist pf.doc pause
  58. if not exist pf.doc goto start
  59. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  60. echo    ║                                                                       ║
  61. echo    ║            1) Display PF.DOC, Port Finder Documentation               ║
  62. echo    ║            2) Print PF.DOC, Port Finder Documentation                 ║
  63. echo    ║                                                                       ║
  64. echo    ║            Q) Quit, Return to Main Menu                               ║
  65. echo    ║                                                                       ║
  66. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  67. bh 12q
  68. if errorlevel 3 goto start
  69. if errorlevel 2 goto 1prt
  70. if errorlevel 1 bh # PF.DOC
  71. goto start
  72. :1prt
  73. cls
  74. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  75. echo    ║                                                                       ║
  76. echo    ║              Printing PF.DOC, Port Finder Documentation               ║
  77. echo    ║                                                                       ║
  78. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  79. type pf.doc >prn
  80. echo    +                                                                       +
  81. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  82. echo    +                                                                       +
  83. pause
  84. goto start
  85.  
  86. :2prtred
  87. if not exist pfreview.doc echo PFREVIEW.DOC file NOT found!
  88. if not exist pfreview.doc pause
  89. if not exist pfreview.doc goto start
  90. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  91. echo    ║                                                                       ║
  92. echo    ║            1) Display PFREVIEW.doc, Port Finder Reviews               ║
  93. echo    ║            2) Print PFREVIEW.DOC, Port Finder Reviews                 ║
  94. echo    ║                                                                       ║
  95. echo    ║            Q) Quit, Return to Main Menu                               ║
  96. echo    ║                                                                       ║
  97. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  98. bh 12q
  99. if errorlevel 3 goto start
  100. if errorlevel 2 goto 2prt
  101. if errorlevel 1 bh # PFREVIEW.DOC
  102. goto start
  103. :2prt
  104. cls
  105. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  106. echo    ║                                                                       ║
  107. echo    ║               Printing PFREVIEW.DOC, Port Finder Reviews              ║
  108. echo    ║                                                                       ║
  109. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  110. type pfreview.doc >prn
  111. echo    +                                                                       +
  112. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  113. echo    +                                                                       +
  114. pause
  115. goto start
  116.  
  117. :3prtred
  118. if not exist problem.doc echo PROBLEM.DOC file NOT found!
  119. if not exist problem.doc pause
  120. if not exist problem.doc goto start
  121. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  122. echo    ║                                                                       ║
  123. echo    ║            1) Display PROBLEM.DOC, Port Finder Problem Report         ║
  124. echo    ║            2) Print PROBLEM.DOC, Port Finder Problem Report           ║
  125. echo    ║                                                                       ║
  126. echo    ║            Q) Quit, Return to Main Menu                               ║
  127. echo    ║                                                                       ║
  128. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  129. bh 12q
  130. if errorlevel 3 goto start
  131. if errorlevel 2 goto 3prt
  132. if errorlevel 1 bh # PROBLEM.DOC
  133. goto start
  134. :3prt
  135. cls
  136. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  137. echo    ║                                                                       ║
  138. echo    ║            Printing PROBLEM.DOC, Port Finder Problem Report           ║
  139. echo    ║                                                                       ║
  140. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  141. type problem.doc >prn
  142. echo    +                                                                       +
  143. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  144. echo    +                                                                       +
  145. pause
  146. goto start
  147.  
  148. :4prtred
  149. if not exist register.doc echo REGISTER.DOC file NOT found!
  150. if not exist register.doc pause
  151. if not exist register.doc goto start
  152. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  153. echo    ║                                                                       ║
  154. echo    ║            1) Display REGISTER.DOC, PF Registration Form              ║
  155. echo    ║            2) Print REGISTER.DOC, PF Registration Form                ║
  156. echo    ║                                                                       ║
  157. echo    ║            Q) Quit, Return to Main Menu                               ║
  158. echo    ║                                                                       ║
  159. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  160. bh 12q
  161. if errorlevel 3 goto start
  162. if errorlevel 2 goto 4prt
  163. if errorlevel 1 bh # REGISTER.DOC
  164. goto start
  165. :4prt
  166. cls
  167. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  168. echo    ║                                                                       ║
  169. echo    ║          Printing REGISTER.DOC, Port Finder Registration Form         ║
  170. echo    ║                                                                       ║
  171. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  172. type register.doc >prn
  173. echo    +                                                                       +
  174. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  175. echo    +                                                                       +
  176. pause
  177. goto start
  178.  
  179. :5prtred
  180. if not exist MTSR.DOC echo MTSR.DOC file NOT found!
  181. if not exist MTSR.DOC pause
  182. if not exist MTSR.doc goto start
  183. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  184. echo    ║                                                                       ║
  185. echo    ║            1) Display MTSR.DOC, MTSR Documentation (Mem Usage Display)║
  186. echo    ║            2) Print MTSR.DOC, MTSR Documentation (Mem Usage Display)  ║
  187. echo    ║                                                                       ║
  188. echo    ║            Q) Quit, Return to Main Menu                               ║
  189. echo    ║                                                                       ║
  190. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  191. bh 12q
  192. if errorlevel 3 goto start
  193. if errorlevel 2 goto 5prt
  194. if errorlevel 1 bh # MTSR.DOC
  195. goto start
  196. :5prt
  197. cls
  198. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  199. echo    ║                                                                       ║
  200. echo    ║          Printing MTSR.DOC, MTSR Documentation (Memory Usage Display) ║
  201. echo    ║                                                                       ║
  202. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  203. type MTSR.DOC >prn
  204. echo    +                                                                       +
  205. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  206. echo    +                                                                       +
  207. pause
  208. goto start
  209.  
  210. :6prtred
  211. if not exist MUMB.DOC echo MUMB.DOC file NOT found!
  212. if not exist MUMB.DOC pause
  213. if not exist MUMB.doc goto start
  214. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  215. echo    ║                                                                       ║
  216. echo    ║            1) Display MUMB.DOC, MUMB Documentation (DOS 5 UMB Utility)║
  217. echo    ║            2) Print MUMB.DOC, MUMB Documentation                      ║
  218. echo    ║                                                                       ║
  219. echo    ║            Q) Quit, Return to Main Menu                               ║
  220. echo    ║                                                                       ║
  221. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  222. bh 12q
  223. if errorlevel 3 goto start
  224. if errorlevel 2 goto 6prt
  225. if errorlevel 1 bh # MUMB.DOC
  226. goto start
  227. :6prt
  228. cls
  229. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  230. echo    ║                                                                       ║
  231. echo    ║          Printing MUMB.DOC, MUMB Documentation (DOS 5 UMB Utility)    ║
  232. echo    ║                                                                       ║
  233. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  234. type MUMB.DOC >prn
  235. echo    +                                                                       +
  236. echo    ++++++++++++++++++++++++++  PRINTING COMPLETE!  +++++++++++++++++++++++++
  237. echo    +                                                                       +
  238. pause
  239. goto start
  240.  
  241. :error
  242. cls
  243. echo    ╔═════════════════════════════════════════════════════════╗
  244. echo    ║                                                         ║
  245. echo    ║  The file BH.COM must be in the same default directory  ║
  246. echo    ║  as PRINTDOC.BAT.  Please have these two files in the   ║
  247. echo    ║  same default directory before running PRINTDOC.BAT.    ║
  248. echo    ║  Port Finder requires DOS 3.3, 4.0, or higher to run.   ║
  249. echo    ║                                                         ║
  250. echo    ╚═════════════════════════════════════════════════════════╝
  251. pause
  252. :end
  253. cls
  254.